import { Routes } from "nest-router";
import { MobileClientModule } from "./mobile-client/mobile-client.module";
import { Oauth2Module } from "./oauth2/oauth2.module";
import { LinkModule } from "./link/link.module";
import { SsoModule } from "./sso/sso.module";
import { VersionModule } from "./api/version.module";

export const routes: Routes = [
    {
        path: "/anyshare",
        children: [
            {
                path: "/mobile-client",
                module: MobileClientModule,
            },
            {
                path: "/oauth2",
                module: Oauth2Module,
            },
        ],
    },
    {
        path: "/link",
        module: LinkModule,
    },
    {
        path: "/sso",
        module: SsoModule,
    },
    {
        path: "/api/client/v1",
        children: [
            {
                path: "/version",
                module: VersionModule,
            },
        ],
    },
];
